/* select class.css - Complete CSS for TREDYL Schools Portal */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-light: #f8fafc;
    --secondary-light: #e2e8f0;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-blue-dark: #1d4ed8;
    --nursery-color: #8b5cf6;
    --primary-color: #10b981;
    --jss-color: #f59e0b;
    --sss-color: #ef4444;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-radius: 12px;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 20px 25px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--primary-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    width: 150px;
    height: auto;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links ul li a:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* Mobile Menu */
nav .fa {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.nav-links.active {
    right: 0 !important;
}

/* ===== CLASS SELECTION PAGE STYLES ===== */

.result-portal {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.back-nav {
    margin-bottom: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.back-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.portal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.portal-header h1 {
    font-size: 2.2rem;
    color: var(--accent-blue-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.portal-header h1 i {
    color: var(--accent-blue);
}

.portal-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.term-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--secondary-light);
    border-radius: var(--border-radius);
    text-align: left;
}

.info-card i {
    font-size: 2rem;
    color: var(--accent-blue);
}

.info-card h3 {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.info-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Class Selection */
.class-selection {
    margin-bottom: 3rem;
}

.selection-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue-light), var(--accent-blue));
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow-medium);
}

.selection-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.selection-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.selection-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.class-categories {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.category-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.category-title {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-light);
}

/* Class Tags */
.class-tags {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.class-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: white;
    border: 2px solid var(--accent-blue);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.class-tag:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.class-tag i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

.class-tag:hover i {
    color: white;
}

.class-tag span {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.class-tag small {
    font-size: 0.8rem;
    color: var(--text-gray);
    opacity: 0.8;
}

.class-tag:hover small {
    color: white;
    opacity: 1;
}

/* Color coding for sections */
.category-section:nth-child(1) .category-title i { color: var(--nursery-color); }
.category-section:nth-child(1) .class-tag { border-color: var(--nursery-color); }
.category-section:nth-child(1) .class-tag:hover { background: var(--nursery-color); }

.category-section:nth-child(2) .category-title i { color: var(--primary-color); }
.category-section:nth-child(2) .class-tag { border-color: var(--primary-color); }
.category-section:nth-child(2) .class-tag:hover { background: var(--primary-color); }

.category-section:nth-child(3) .category-title i { color: var(--jss-color); }
.category-section:nth-child(3) .class-tag { border-color: var(--jss-color); }
.category-section:nth-child(3) .class-tag:hover { background: var(--jss-color); }

.category-section:nth-child(4) .category-title i { color: var(--sss-color); }
.category-section:nth-child(4) .class-tag { border-color: var(--sss-color); }
.category-section:nth-child(4) .class-tag:hover { background: var(--sss-color); }

/* Instructions */
.result-instructions {
    margin-bottom: 3rem;
}

.instructions-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
}

.instructions-card h3 {
    color: var(--accent-blue-dark);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.instructions-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.roll-number-help {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-blue);
}

.roll-number-help i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-top: 0.5rem;
}

.roll-number-help h4 {
    color: var(--accent-blue-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.roll-number-help p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Important Notice */
.important-notice {
    background: #fef3c7;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--jss-color);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.notice-header i {
    font-size: 2rem;
    color: var(--jss-color);
}

.notice-header h3 {
    color: #92400e;
    font-size: 1.3rem;
}

.notice-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.notice-content p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #92400e;
    font-size: 0.95rem;
}

.notice-content i {
    color: var(--jss-color);
    font-size: 1rem;
}

/* ===== RESULTS PAGE STYLES ===== */

.results-page-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Roll Entry Form */
.roll-entry-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.form-body {
    padding: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roll-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
}

.roll-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-hint {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-result-btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.check-result-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid #dc2626;
}

.form-footer {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.notice-box {
    background: #f0f9ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.notice-box h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-box p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Results Display */
.results-display {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
}

.student-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.badge-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.student-info h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.student-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.detail-item {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item i {
    color: #10b981;
}

.detail-item strong {
    color: #1e293b;
    margin-left: 0.25rem;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    padding: 1.5rem 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.action-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.action-btn span {
    font-size: 1rem;
}

.print-btn {
    background: #fef3c7;
    color: #92400e;
}

.print-btn:hover {
    background: #fde68a;
}

.download-btn {
    background: #d1fae5;
    color: #065f46;
}

.download-btn:hover {
    background: #a7f3d0;
}

.share-btn {
    background: #e0f2fe;
    color: #075985;
}

.share-btn:hover {
    background: #bae6fd;
}

/* Results Instructions Box */
.results-instructions-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
    margin-top: 1.5rem;
}

.results-instructions-box h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-instructions-box .instructions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.results-instructions-box .instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.results-instructions-box .instruction-item i {
    color: #3b82f6;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.results-instructions-box .instruction-item div {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.results-instructions-box .instruction-item strong {
    color: #1e293b;
}

/* ===== FOOTER ===== */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 5% 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: var(--border-radius);
    min-width: 120px;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.footer-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-blue-light);
}

.footer-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.school-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 120px;
    margin-bottom: 1rem;
}

.school-info p {
    color: var(--secondary-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.support-info h4 {
    color: var(--accent-blue-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-info p {
    color: var(--secondary-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-info i {
    color: var(--accent-blue-light);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: var(--secondary-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.copyright i {
    color: #ef4444;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-medium);
    }
    
    .nav-links ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-links ul li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links ul li a {
        display: flex;
        justify-content: center;
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--secondary-light);
    }
    
    nav .fa {
        display: block;
    }
    
    /* Class Selection Page */
    .portal-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .term-info {
        grid-template-columns: 1fr;
    }
    
    .class-tags {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .instructions-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .roll-number-help {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    /* Results Page */
    .results-page-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .student-badge {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .student-details {
        justify-content: center;
    }
    
    .results-instructions-box .instructions-list {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    /* Navigation */
    .logo img {
        width: 120px;
    }
    
    /* Class Selection Page */
    .portal-header h1 {
        font-size: 1.5rem;
    }
    
    .portal-subtitle {
        font-size: 1rem;
    }
    
    .class-tags {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .class-tag {
        padding: 1rem 0.5rem;
    }
    
    .instructions-card {
        padding: 1.5rem;
    }
    
    .important-notice {
        padding: 1.5rem;
    }
    
    /* Results Page */
    .form-header {
        padding: 1.5rem 1rem;
    }
    
    .form-body {
        padding: 1.5rem 1rem;
    }
    
    .form-footer {
        padding: 1.5rem 1rem;
    }
    
    .results-header {
        padding: 1.5rem;
    }
    
    .badge-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .student-info h2 {
        font-size: 1.3rem;
    }
    
    /* Footer */
    .footer-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .school-info {
        align-items: center;
    }
    
    .support-info p {
        justify-content: center;
    }
}